package com.whut;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 快递驿站 —— 系统启动类
 */
@Slf4j
@SpringBootApplication
@ServletComponentScan        // 开启针对Servlet容器相关组件（特别是过滤器）的扫描
@EnableTransactionManagement // 开启事务管理的支持
public class ExpressApplication {
    public static void main(String[] args) {
        SpringApplication.run(ExpressApplication.class, args);
        // 将必要的信息输出到日志
        log.info("项目启动成功…………");

    }
}
